package com.gs.core.service;

import java.util.List;

public interface ServiceFacade<T,ID> {
	/**
	 * Find all.
	 *
	 * @return the list
	 */
	public List<T> findAll();

	/**
	 * Find by id.
	 *
	 * @param id the id
	 */
	public T findById(ID id);

	/**
	 * Save or update.
	 *
	 */
	public T saveOrUpdate(T entity);

	/**
	 * Delete.
	 *
	 */
	public void delete(T entity);
	
	public void deleteAll();
}
